<!--
    @Author     : Hai Dang
-->

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
     <head>
        <title>List of Aircraft</title>
        <jsp:include page="headers.jsp" />
    </head>
    <body>
        <div id="main_container">
            <jsp:include page="/jsp/loginheader.jsp"/>
            <div class="main_content">
                <jsp:include page="${sessionScope.menuChoice}" /> <!-- include menu -->
                <div class="center_content">
                      <div class="left_content">
                          <div class="sidebar_box">
                            <div class="sidebar_box_top"></div>
                            <div class="sidebar_box_content">
                                <p>
                                    <a rel="group" href="images/airplane/Apache.jpg" title="Apache"><img alt="" src="images/airplane/Apache.jpg" width="165"/></a>
                                    <a rel="group" href="images/airplane/BeechBaron.jpg" title="Beech Baron"><img alt="" src="images/airplane/BeechBaron.jpg" width="165"/></a>
                                    <a rel="group" href="images/airplane/Cessna172.JPG" title="Cessna 172"><img alt="" src="images/airplane/Cessna172.JPG" width="165"/></a>
                                    <a rel="group" href="images/airplane/Cherokee140.jpg" title="Cherokee 140"><img alt="" src="images/airplane/Cherokee140.jpg" width="165"/></a>
                                    <a rel="group" href="images/airplane/RyanNavion.JPG" title="Ryan Navion"><img class="last" alt="" src="images/airplane/RyanNavion.JPG" width="165"/></a>
                                </p>
                            </div>
                            <div class="sidebar_box_bottom"></div>
                        </div>
                    </div> <!-- end left content -->
                    <div class="right_content">
                        <h2>List of Aircraft</h2>
                        <table id="myTable" class="tablesorter" border="0" cellpadding="0" cellspacing="1">
                            <thead>
                                <tr style="font-weight: bold">
                                    <th class="rounded-left" align="center">TYPE</th>
                                    <th class="rounded" align="center">TAIL NUMBER</th>
                                    <th class="rounded" align="center">MODEL</th>
                                    <th class="rounded" align="center">RATE</th>
                                </tr>
                            </thead>
                            <tbody>
                                <c:forEach var="plane" items="${planes}">
                                    <tr>
                                        <td align="right">${plane.aircraftType}</td>
                                        <td align="right">${plane.tailNumber}</td>
                                        <td align="right">${plane.model}</td>
                                        <td align="right">$${plane.rate}</td>
                                    </tr>
                                </c:forEach>
                            </tbody>
                        </table>
                    </div> <!-- end of right content -->
                </div>   <!--end of center content -->
                <div class="clear"></div>
            </div> <!--end of main content-->
            <div class="footer">
                <div class="left_footer"><a href="RedTeam">Powered by: Red Team<a href="http://apycom.com/"></a>Red Team &copy;</div>
                <div class="right_footer"></div>
            </div> <!-- end footer -->
        </div> <!-- end main container -->
    </body>
</html>

